package com.personal.common.exception;

public class CommonException extends Exception {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int errorCode;
	
	public CommonException() {
        super();
    }
    
    public CommonException(int errorCode,String msg) {
    	super(msg);
    	this.setErrorCode(errorCode);
    }
    
    public CommonException(int errorCode,String msg, Throwable cause) {
        super(msg, cause);
        this.setErrorCode(errorCode);
    }
    
    public CommonException(int errorCode,Throwable cause) {
        super(cause);
        this.setErrorCode(errorCode);
    }

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
}
